<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CustomerModel extends Model
{
    protected $table = 'customer';

    protected $fillable = [
        'id',
        'serial_number',
        'customer_name',
        'age',
        'customer_gender',
        'customer_mobile',
        'customer_wechat',
        'customer_qq',
        'education',
        'information_resources',
        'customer_status',
        'customer_address',
        'remark',
        'salesman_id',
        'created_at',
        'updated_at'
    ];

    protected $casts = [
        'extends' => 'json', // 标记为 JSON 类型‌:ml-citation{ref="1,8" data="citationList"}
    ];
}
